home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Popular Request
/
By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO
/
amiga2
/
killer21.lha
/
killer
next >
Wrap
Text File
|
1994-01-11
|
12KB
|
482 lines
/***********************************************\
* Killer V2.1 (c)11.12.1993 by Quickfinger *
* Bei Problemen oder Sonderwuenschen einfach *
* Paranoia Complex BBS +49(0)6251-75324 anrufen *
* Das Programm bitte nicht veraendern. *
* Einfach vom BBSmenu aus starten *
* CNET 2.96 and higher (maybe lower). *
\***********************************************/
options results
quick=0
getuser 1100452 ; bbstext=result
getuser 15 ; ag=result
getuser 40 ; acn=result
getuser 1307363 ; behind=upper(result)
getuser 1 ; handle=upper(result)
getuser 1310882 ; nname=result
namenlen=length(handle)
/****************************************************************/
/* CONFIGURATION HERE!! DON'T CHANGE --ANYTHING-- ELSE !!! */
sysop=23 /* Access group of sysop */
ack.0="y" /* Acknowledge (Yes, Ja, Oui,...) of bbstext 0 LOWER CASE! */
ack.1="j" /* Acknowledge (Yes, Ja, Oui,...) of bbstext 1 LOWER CASE! */
passwort="LMAA" /* Level1 Password */
pcode="LMAB" /* Level2 Password */
frat=3 /* Standard uploadratio FILE (here 1:3) */
brat=5 /* Standard uploadratio BYTE (here 1:5) */
menupath="pfiles:utis/killer.menu"
/*** CONSTRUCTION OF DEFAULTS ****
d.0="No" Delete file="Yes"; don't delete File="No"
b.0=x Subtract bytes x times (negative for REWARD)
f.0=x Subtract files x times (negative for REWARD)
t.0="cause" Cause to be displayed in the Filelist
maximum sets are 12, don't forget to change the >killer.menu< text
****END OF EXAMPLE****/
d.1="No"
b.1=-3
f.1=-1
t.1="YEAH COOL U/L!"
d.2="No"
b.2=1
f.2=1
t.2="NO SENDERNAMES"
d.3="No"
b.3=2
f.3=1
t.3="NO BBS-ADDIES!"
d.4="No"
b.4=2
f.4=2
t.4="WRONG/NO PACK!"
d.5="No"
b.5=3
f.5=2
t.5="INCOMPLETE!"
d.6="Yes"
b.6=5
f.6=3
t.6="CORRUPT!"
d.7="Yes"
b.7=5
f.7=3
t.7="HERE SINCE DAYS"
d.8="Yes"
b.8=5
f.8=3
t.8="WRONG LANGUAGE"
d.9="Yes"
b.9=5
f.9=3
t.9="ANCIENT AS HELL"
d.10="Yes"
b.10=5
f.10=3
t.10="UNFINISHED!"
d.11="Yes"
b.11=6
f.11=6
t.11="NO PD/SW/FW!!!!"
d.12="Yes"
b.12=99
f.12=99
t.12="REAL DAMN CRAP!"
/* END OF CONFIGURATION PART - NOTHING TO BE CHANGED AFTER THIS LINE */
ack=ack.bbstext
ackc=upper(ack)
if behind="CLEAR" then do
getuser 1310882 ; name=result
getuser 1306724 ; path=result
name=path"data/"name".nuk"
prompt 2 yesno "n1Clear CURRENT NUKE-Entry ("ackc"/n)?:" ; janein=result
if janein="Yes" then do
com="c:delete "name
address command com
transmit "n1done!"
end
call ende
end
if ag=sysop & behind="CLALL" then do
getuser 1310882 ; name=result
getuser 1306724 ; path=result
getuser 1306724 ; path=result
name=path"data/"
prompt 2 noyes "n1Clear ALL NUKE-Entries ("ack"/N)?:" ; janein=result
if janein="Yes" then do
com="c:delete "name"#?.nuk"
address command com
transmit "n1done!"
end
call ende
end
passwort=upper(passwort)
line1=""
if ag~=sysop then do
prompt 8 hide "n1Passwort: " ; pw=result
if pw~=passwort then do
transmit "n1Ask the sysop for the correct password."
call ende
end
end
/*** menu hier rein ***/
menu:
sendfile menupath
prompt 2 normal "n1Choose a nukecause:" ; wahl=result
if wahl=14 then do
if ag~=23 then do
prompt 8 hide "n1Enter passcode to use non-default setting: " ;pc=result
if upper(pc)~=upper(pcode) then do
transmit "n1Ask the sysop for the correct passcode."
call ende
end
end
quick=0
call weiter
end
if wahl=13 then do
d.wahl=getclip("kill")
b.wahl=getclip("btimes")
f.wahl=getclip("ftimes")
t.wahl=getclip("caustext")
quick=1
call weiter
end
if wahl>-1 & wahl<13 then do
quick=1
call weiter
end
call ende
/********** menu ende ****/
weiter:
getuser 1310882 ; name=result
getuser 1306724 ; path=result
getuser 1305896 ; info=left(result,78)
getuser 84 ; size=result
getuser 1511084 ; date=result
getuser 2400088 ; userzahl=result
getuser 1410922 ; byacc=result
datum=date()
zeit=time()
loadscratch byacc
getscratch 1 ; byname=result
getscratch 1300744 ; user=result
getscratch 34 ; fcredits=result
getscratch 35 ; bcredits=result
savescratch byacc
pfad2file=path""name
transmit "f1n1Do you really want to c1NUKEc7 the following file?:n1"
transmit "File Information:"
transmit "-----------------"
transmit "c2Path to File :c7"pfad2file
transmit "c2Size :c7"size
transmit "c2Uploaded by :c7"user","byacc
transmit "c2Date of Upload :c7"date
transmit "c2Description :c7n2"info" ..."
transmit "n1"
if quick=1 then do
janein=d.wahl
call p1
end
prompt 2 noyes "n1Delete File from HD....("ack"/N)?:" ; janein=result
setclip("kill",d.wahl)
p1:
if janein="Yes" then do
setclip("kill",janein)
com="c:delete "pfad2file
address command com
sendstring "n1Killing...."
transmit "....done!"
address command kill
end
if quick=1 then do
janein="Yes"
call p2
end
prompt 2 noyes "n1Reduce/Reward Credits ("ack"/N)?:" ; janein=result
p2:
if janein="Yes" then do
call reduce
end
if janein="No" then do
call mail
end
reduce:
if quick=1 then do
btimes=b.wahl
ftimes=f.wahl
call p3
end
transmit "n1c2Please use the amounts stated in the main menu:c7"
prompt 3 normal "n1How many times byte (c3-c7 = reward)? :" ; btimes=result
prompt 3 normal "n1How many times file? (c3-c7 = reward=? :" ; ftimes=result
setclip("btimes",btimes)
setclip("ftimes",ftimes)
p3:
if upper(byname)=upper(handle) & ag~=sysop & btimes<0 & ftimes<0 then do
transmit "n1Sorry, you must not reward your own files!"
call ende
end
if ftimes="" | btimes="" then do
call ende
end
transmit "n1User's Credits.......(byte/file): "bcredits" "fcredits
transmit "Deducting............(byte/file): "size*btimes" "1*ftimes
transmit "User's New Credits...(byte/file): "bcredits-size*btimes" "fcredits-ftimes
if quick~=1 then do
transmit "n1RETURN=CONTINUEg1"
end
bcredsneu=bcredits-size*btimes
fcredsneu=fcredits-ftimes
bweg=size*btimes
fweg=ftimes
loadscratch byacc
setobject bcredsneu
putscratch 35
savescratch byacc
loadscratch byacc
setobject fcredsneu
putscratch 34
savescratch byacc
sendstring "n1Reducing credits....." ; sendstring "....done!n1"
if sysop=ag then do
prompt 2 yesno "n1Scan for possible downloads ("ackc"/n)):" ; janein=result
if janein="No" then do
noreturn=1
call nachreturn
end
end
/**************CREDIT RETURNER START***************/
return:
transmit "n1Scanning for possible downloadersn1If handlesearch appears, just hit RETURN..."
zahl=0
count=0
returnfile=1
returnbyte=size
filename=upper(name)
if exists("sysdata:log/dloads")=0 then do
transmit "n1Downloadlog does not exist!"
exit
end
open("i","sysdata:log/dloads","R")
do until eof("i")=1
zahl=zahl+1
zeile.zahl=upper(readln("i"))
if index(zeile.zahl,filename)>0 then do
count=count+1
name.count=left(zeile.zahl,40)
name.count=right(name.count,21)
name.count=strip(name.count,"T")
findaccount name.count ; account.count=result
if account.count=0 then do
count=count-1
end
end
if right(z,1)=0 then do
sendstring "c7."
end
end
close("i")
do a=1 to count
sendstring "Returning credits to "name.a"..."
loadscratch account.a
getscratch 34 ; userfcred=result
getscratch 35 ; userbcred=result
userfcred=userfcred+returnfile
userbcred=userbcred+returnfile
setobject userfcred
putscratch 34
setobject userbcred
putscratch 35
savescratch account.a
transmit "...returned ^1"
end
/**************CREDIT RETURNER ENDE***************/
nachreturn:
if quick=1 then do
janein="Yes"
call nuke
end
prompt 2 noyes "n1Nuke in Filescan ("ack"/N)?:"; janein=result
if janein="Yes" then do
call nuke
end
if janein="No" then do
call mail
end
nuke:
cause=0
getuser 1306724 ; path=result
getuser 1306724 ; path=result
name=path"data/"nname".nuk"
if quick=1 then do
causetext.=t.wahl
call p6
end
transmit "n1Select Nukecause:n21=Old, 2=Ancient, 3=Lame, 4=Fake, 5=Reward, 6=<own>"
causetext.="NO CAUSE!!!"
prompt 1 normal "n1Select cause (1-6):" ; cause=result
p6:
if cause>0 & cause<7 then do
if cause=6 then do
mass="<"
do a=1 to 24-namenlen
mass=mass"-"
end
mass=mass">"
prompt 26-namenlen normal "n1Enter the Titel of deletion (max. "26-namenlen" chars)n1 "mass"n1:"; causetext.6=upper(result)
if causetext="" then do
causetext.6="NO CAUSE!!!"
transmit "Allright, nothing."
end
end
end
causetext.1="VERY OLD!!!"
causetext.2="ANCIENT!!!!"
causetext.3="LAME!!!!!!!"
causetext.4="FAKE!!!!!!!"
causetext.5="VERY GOOD!!"
setclip("caustext",causetext.cause)
line1="^1>34}c7>>>>>>c2 "left(handle,namenlen)": c1"left(causetext.cause,26-namenlen)" c7<<<<<<c7"
mass="<-------------------------->"
prompt 28 normal "n1Enter OPTIONAL nukemessage, blank to skip:n1 "mass"n1:" ; nukemess=upper(left(result,28))
setclip("nukemessage",nukemess)
if nukemess~="" then do
line1=line1"n1>34}c7>>>>>>c2 "nukemess" c7<<<<<<c7"
end
btimes=left(btimes,2)
ftimes=left(ftimes,2)
word="n1>34}c7>>>>>> c1"right(btimes,2)"x c2BYTES / c1"right(ftimes,2)"xc2 FILES GONE!! c7<<<<<<c7"
if ftimes=frat & btimes=brat then do
word="n1>34}c7>>>>>>c2 FULL CREDITS GONE!! c7 <<<<<<"
end
if btimes<0 then do
btimes=abs(btimes)
ftimes=abs(ftimes)
word="n1>34}c7>>>>>>c3 "right(btimes,2)"x c2BYTES / c3"right(ftimes,2)"xc2 FILES GIVEN! c7<<<<<<c7"
end
line1=line1""word
transmit "n1Result:n2"line1
open("o",name,"W")
writeln("o",line1)
close("o")
mail:
janein="Yes"
if quick=1 then do
call p4
end
if ag=sysop then do
prompt 2 yesno "n1Send Nuke-Mail to user ("ackc"/n)?:"; janein=result
end
p4:
if janein="Yes" then do
open("raus","ram:nukemail","W")
getuser 1 ; handle=result
nukb=size*btimes
nukf=ftimes
mail=" File:c2 "nname"c7n1 Size:c2 "size"c7n1Upload Date:c2 "date"c7n1 Info:c2 "info"c7n1n1Times nuked (File/Byte):c2 "ftimes"/"btimes"c7n1 Bytes nuked:c2 "nukb"c7n1 Files nuked:c2 "nukf"c7n1 BCreds left:c2 v35}c7n1 FCreds left: c2v34}c7n2 Nuked by: c2"handle"c7n2"line1"n2 c3Killer V2.0a by Quickfinger/LATEXc2n1Paranoia Complex BBS +49(0)625175324 1/3c7"
writeln("raus",mail)
close("raus")
setmailsubj "Byte-Credits"
loadeditor "ram:nukemail"
writemail byacc
transmit "f1n1Message to User "user
transmit "n1*0ram:nukemail}"
address command "c:delete ram:nukemail"
if handle~="Quickfinger" then do
sendstring "n1Sending receipt to sysop..."
open("o","ram:sysmsg","W")
sysopmessg="c2"handle"c7 nuked c1"byname"'sc7 upload c3"nname"c7 c1"btimes"c7x Bytes, c1"ftimes"c7x Files"
writeln("o",sysopmessg)
close("o")
cleareditor
loadeditor "ram:sysmsg"
setmailsubj "Nuke-Receipt"
writemail 1
address command "c:delete ram:sysmsg"
transmit "sent."
end
if noreturn~=1 then do
mailret="You downloaded the following file and it was nuked. Therefore you aren1c2returnedc7 the credits.n2 File:c2 "nname"c7n1 Size:c2 "size"c7n1Upload Date:c2 "date"c7n1 Info:c2 "info"c7n2Bytes c2RETURNEDc7 :c2 "size"c7n1Files c2RETURNEDc7 :c2 1c7n1 BCreds left:c2 v35}c7n1 FCreds left:c2 v34}c7n2 Nuked by: c2"handle"c7n2"line1"n2 c3Killer V2.0a by Quickfinger/LATEXc2n1Paranoia Complex BBS +49(0)625175324 1/3c7"
open("o","ram:mailret","W")
writeln("o",mailret)
close("o")
do a=1 to count
sendstring "n1Sending return-receipt to "name.a"..."
setmailsubj "Credits returned"
cleareditor
loadeditor "ram:mailret"
writemail account.a
transmit "sent! ^1"
end
transmit ""
address command "c:delete ram:mailret"
end
end
ende:
exit